<!DOCTYPE HTML>
<html xmlns:wb="http://open.weibo.com/wb">
	<head>
		</script>
		<script type="text/javascript" async="" src="style/js/conversion.js"></script>
		<script src="style/js/allmobilize.min.js" charset="utf-8" id="allmobilize"></script>
		<style type="text/css"></style>
		<meta content="no-siteapp" http-equiv="Cache-Control">
		<link media="handheld" rel="alternate">
		<!-- end 云适配 -->
		<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
		<title>我的公司-东莞大学生兼职网站-最专业的企业端招聘平台</title>
		<meta content="23635710066417756375" property="qc:admins">
		<meta content="QIQ6KC1oZ6" name="baidu-site-verification">
		<script type="text/javascript" src="style/js/neturl.js"></script>

		<!-- <div class="web_root"  style="display:none">http://www.lagou.com</div> -->
		<script type="text/javascript">
			var ctx = "http://www.lagou.com";
			console.log(1);
		</script>
		<link href="http://www.lagou.com/images/favicon.ico" rel="Shortcut Icon">
		<link href="style/css/style.css" type="text/css" rel="stylesheet">
		<link href="style/css/external.min.css" type="text/css" rel="stylesheet">
		<link href="style/css/popup.css" type="text/css" rel="stylesheet">
		<script type="text/javascript" src="style/js/jquery.1.10.1.min.js"></script>
		<script src="style/js/jquery.lib.min.js" type="text/javascript"></script>
		<script type="text/javascript" src="style/js/ajaxfileupload.js"></script>
		<script src="style/js/additional-methods.js" type="text/javascript"></script>
		<!--[if lte IE 8]>
    <script type="text/javascript" src="style/js/excanvas.js"></script>
<![endif]-->
		<script type="text/javascript">
			var youdao_conv_id = 271546;
		</script>
		<script src="style/js/conv.js" type="text/javascript"></script>
		<script src="style/js/ajaxCross.json" charset="UTF-8"></script>
	</head>
	<body>
		<div id="body">
			<div id="header">
				<div class="wrapper">
					<a href="index.html" class="logo" >
						<img src="style/images/logo.png" width="200" height="50" alt="东莞大学生兼职网站企业端" />
					</a>
					<ul id="navheader" class="reset">
						<li><a href="index.html">首页</a></li>
						<li class="current"><a href="myhome.html">我的公司</a></li>
						<li><a href="mList.html">我的职位</a></li>
						<li><a rel="nofollow" href="canInterviewResumes.html">应聘我的</a></li>
						<li><a rel="nofollow" href="create.html">发布职位</a></li>
					</ul>
					<dl class="collapsible_menu">
						<dt>
							<span><span id="uname"></span>&nbsp;</span>
							<span class="red dn" id="noticeDot-1"></span>
							<i></i>
						</dt>
						<dd><a href="mList.html">我发布的职位</a></dd>
						<dd><a href="canInterviewResumes.html">我收到的简历</a></dd>
						<dd class="btm"><a href="myhome.html">我的公司主页</a></dd>
						<dd class="logout" id="logout"><a rel="nofollow">退出</a></dd>
					</dl>
				</div>
			</div><!-- end #header -->
			<div id="container">
				<!-- <script src="style/js/swfobject_modified.js" type="text/javascript"></script> -->
				<div class="clearfix">

					<div class="content_l">
						<div class="c_detail">
							<div style="background-color:#fff;" class="c_logo">
								<a title="上传公司LOGO" id="logoShow" class="inline cboxElement" href="#logoUploader">
									<img width="190" height="190" alt="公司logo" src="style/images/company.jpg">

									<span style="display: flex;justify-content: center;align-items: center;width: 100%;padding: 0px;" id="cname_2"></span>
								</a>
							</div>

							<!--  			                <div class="c_logo" style="background-color:#fff;">
			                	<div id="logoShow">
			                		<img src="style/images/logo_default.png" width="190" height="190" alt="公司logo" />
		                        	<span>更换公司图片<br />190px*190px 小于5M</span>
		                        </div>
		                        <input onchange="img_check(this,'http://www.lagou.com/cd/saveProfileLogo.json',25927,'logo');" type="file" id="logo" name="logo" title="支持jpg、jpeg、gif、png格式，文件小于5M" />
			                     
			                </div>
		                    <span class="error" id="logo_error" style="display:none;"></span>
						     -->

							<div class="c_box companyName">
								<h2 id="company_title">公司名称</h2>

								<em class="unvalid"></em>
								<span class="va dn">未认证企业</span>
								<a target="_blank" class="applyC" href="http://www.lagou.com/c/auth.html">申请认证</a>
								<div class="clear"></div>

								<h1 id="company_name" class="fullname">公司全名</h1>

								<form class="clear editDetail dn" id="editDetailForm">
									<input type="text" placeholder="请输入公司简称" maxlength="15" value="平潭协创进出口贸易有限公司" name="companyShortName" id="companyShortName">
									<input type="text" placeholder="一句话描述公司优势，核心价值，限50字" maxlength="50" value="测试的发打发打发大范德萨发" name="companyFeatures"
									 id="companyFeatures">
									<input type="hidden" value="25927" id="companyId" name="companyId">
									<input type="submit" value="保存" id="saveDetail" class="btn_small">
									<a id="cancelDetail" class="btn_cancel_s">取消</a>
								</form>

								<div class="clear oneword"><img width="17" height="15" src="style/images/quote_l.png">&nbsp; <span id="ctime">测试的发打发打发大范德萨发</span>
									&nbsp;<img width="17" height="15" src="style/images/quote_r.png"></div>
								<h3 class="dn">已选择标签</h3>
								<ul style="overflow:auto" id="hasLabels" class="reset clearfix">
									<li><span>年终分红</span></li>
									<li><span>五险一金</span></li>
									<li><span>弹性工作</span></li>
									<li><span>岗位晋升</span></li>
									<li class="link">编辑</li>
								</ul>
								<div class="dn" id="addLabels">
									<a id="changeLabels" class="change" href="javascript:void(0)">换一换</a>
									<input type="hidden" value="1" id="labelPageNo">
									<input type="submit" value="贴上" class="fr" id="add_label">
									<input type="text" placeholder="添加自定义标签" name="label" id="label" class="label_form fr">
									<div class="clear"></div>
									<ul class="reset clearfix"> </ul>
									<a id="saveLabels" class="btn_small" href="javascript:void(0)">保存</a>
									<a id="cancelLabels" class="btn_cancel_s" href="javascript:void(0)">取消</a>
								</div>
							</div>
							<a title="编辑基本信息" class="c_edit" id="editCompanyDetail" href="javascript:void(0);"></a>
							<div class="clear"></div>
						</div>

						<div class="c_breakline"></div>

						<div id="Profile">
							<div class="profile_wrap">
								<!--无介绍 -->
								<dl class="c_section dn">
									<dt>
										<h2><em></em>公司介绍</h2>
									</dt>
									<dd>
										<div class="addnew">
											详细公司的发展历程、让求职者更加了解你!<br>
											<a id="addIntro" href="javascript:void(0)">+添加公司介绍</a>
										</div>
									</dd>
								</dl>
								<!--编辑介绍-->
								<dl class="c_section newIntro dn">
									<dt>
										<h2><em></em>公司介绍</h2>
									</dt>
									<dd>
										<form id="companyDesForm">
											<textarea placeholder="请分段详细描述公司简介、企业文化等" name="companyProfile" id="companyProfile"></textarea>
											<div class="word_count fr">你还可以输入 <span>1000</span> 字</div>
											<div class="clear"></div>
											<input type="submit" value="保存" id="submitProfile" class="btn_small">
											<a id="delProfile" class="btn_cancel_s" href="javascript:void(0)">取消</a>
										</form>
									</dd>
								</dl>

								<!--有介绍-->
								<dl class="c_section">
									<dt>
										<h2><em></em>公司介绍</h2>
									</dt>
									<dd>
										<div id="introduce" class="c_intro"></div>
										<a title="编辑公司介绍" id="editIntro" class="c_edit" href="javascript:void(0)"></a>
									</dd>
								</dl>
							</div>

						</div><!-- end #Profile -->

						<!--[if IE 7]> <br /> <![endif]-->

						<!--无招聘职位-->
						<dl id="noJobs" class="c_section">
							<dt>
								<h2><em></em>招聘职位</h2>
							</dt>
							<dd>
								<div class="addnew">
									发布需要的人才信息，让伯乐和千里马尽快相遇……<br>
									<a href="create.html">+添加招聘职位</a>
								</div>
							</dd>
						</dl>

						<input type="hidden" value="" name="hasNextPage" id="hasNextPage">
						<input type="hidden" value="" name="pageNo" id="pageNo">
						<input type="hidden" value="" name="pageSize" id="pageSize">
						<div id="flag"></div>
					</div> <!-- end .content_l -->

					<div class="content_r">
						<div id="Tags">
							<div id="c_tags_show" class="c_tags solveWrap">
								<table>
									<tbody>
										<tr>
											<td width="45">地点</td>
											<td id="address">上海</td>
										</tr>
										<tr>
											<td>领域</td><!-- 支持多选 -->
											<td id="profession">移动互联网</td>
										</tr>
										<tr>
											<td>规模</td>
											<td id="scale">150-500人</td>
										</tr>
										<tr>
											<td>主页</td>
											<td>
												<a rel="nofollow" title="" target="_blank" href="" id="chttp">http://www.weim...</a>
											</td>
										</tr>
									</tbody>
								</table>
								<a id="editTags" class="c_edit" href="javascript:void(0)"></a>
							</div>
							<div id="c_tags_edit" class="c_tags editTags dn">
								<form id="tagForms">
									<table>
										<tbody>
											<tr>
												<td>地点</td>
												<td>
													<input type="text" placeholder="请输入地点" value="上海" name="city" id="city">
												</td>
											</tr>
											<tr>
												<td>行业</td><!-- 支持多选 -->
												<td>
													<input type="hidden" value="移动互联网" id="industryField" name="industryField">
													<input type="button" style="background:none;cursor:default;border:none !important;" disable="disable"
													 value="移动互联网" id="select_ind" class="select_tags">
													<!-- <div id="box_ind" class="selectBox dn">
		                                    <ul class="reset">
			                                    				                        							                            			<li class="current">移动互联网</li>
				                            							                            		                                    </ul>
		                                </div>	 -->
												</td>
											</tr>
											<tr>
												<td>规模</td>
												<td>
													<input type="number" placeholder="请输入规模" value="100" name="companySize" id="companySize">
												</td>
											</tr>
											<tr>
												<td>主页</td>
												<td>
													<input type="text" placeholder="请输入网址" value="http://www.weimob.com" name="companyUrl" id="companyUrl">
												</td>
											</tr>
										</tbody>
									</table>
									<input type="hidden" id="comCity" value="上海">
									<input type="hidden" id="comInd" value="移动互联网">
									<input type="hidden" id="comSize" value="100">
									<input type="hidden" id="comUrl" value="http://www.zmtpost.com">
									<input type="submit" value="保存" id="submitFeatures" class="btn_small">
									<a id="cancelFeatures" class="btn_cancel_s" href="javascript:void(0)">取消</a>
									<div class="clear"></div>
								</form>
							</div>
						</div><!-- end #Tags -->

						<div id="Member">
							<!--有创始团队-->
							<dl class="c_section c_member">
								<dt>
									<h2><em></em>创始团队</h2>
								</dt>
								<dd>

									<div class="member_wrap">

										<!-- 显示创始人 -->
										<div class="member_info">
											<div class="m_portrait">
												<div></div>
												<img width="120" height="120" src="style/images/boss.jpg">
											</div>
											<div class="m_name" id="username">
												<span id="username">麻花腾</span>
											</div>
											<div class="u_phone"></div>
										</div>

									</div><!-- end .member_wrap -->
								</dd>
							</dl>
						</div> <!-- end #Member -->


						<!--公司联系资料-->
						<div id="Reported">
							<!--无联系资料-->
							<dl class="c_section c_reported">
								<dt>
									<h2><em></em>公司联系资料</h2>
									<a title="添加报道" class="c_add" href="javascript:void(0)"></a>
								</dt>
								<dd>
									<!-- 编辑联系资料 -->
									<ul class="reset">
										<li>
											<a style="" class="article" title="随便写" target="_blank" id="phone">随便写</a>
										</li>
										<li>
											<a style="" class="article" title="随便写" target="_blank" id="email">随便写</a>
										</li>
									</ul>

									<!-- 无联系资料 -->
									<div class="addnew_right reported_info dn">
										<a class="report_edit" href="javascript:void(0)">+添加联系资料</a>
									</div>

									<ul class="newReport dn">
										<li>
											<a style="display:none;" class="article" title="" target="_blank"></a>
											<a title="编辑联系资料" class="c_edit dn" href="javascript:;"></a>
											<form class="reportForm">
												<input id="phone_edit" type="text" placeholder="请输入联系方式" value="" name="articleTitle">
												<input id="email_edit" type="text" placeholder="请输入邮箱地址" value="" name="articleUrl">
												<input type="submit" value="保存" id="submitContact" class="btn_small">
												<a class="btn_cancel_s report_cancel" href="javascript:;">取消</a>
												<input type="hidden" value="" class="article_id">
											</form>
										</li>
									</ul>
								</dd>
							</dl><!-- end .c_reported -->
						</div><!-- end #Reported -->

					</div>
				</div>

				<!-------------------------------------弹窗lightbox  ----------------------------------------->
				<div style="display:none;">
					<div style="width:650px;height:470px;" class="popup" id="logoUploader">
						<object width="650" height="470" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="FlashID">
							<param value="../../flash/avatar.swf?url=http://www.lagou.com/cd/saveProfileLogo.json" name="movie">
							<param value="high" name="quality">
							<param value="opaque" name="wmode">
							<param value="111.0.0.0" name="swfversion">
							<!-- 此 param 标签提示使用 Flash Player 6.0 r65 和更高版本的用户下载最新版本的 Flash Player。如果您不想让用户看到该提示，请将其删除。 -->
							<param value="../../Scripts/expressInstall.swf" name="expressinstall">
							<!-- 下一个对象标签用于非 IE 浏览器。所以使用 IECC 将其从 IE 隐藏。 -->
							<!--[if !IE]>-->
							<object width="650" height="470" data="../../flash/avatar.swf?url=http://www.lagou.com/cd/saveProfileLogo.json"
							 type="application/x-shockwave-flash">
								<!--<![endif]-->
								<param value="high" name="quality">
								<param value="opaque" name="wmode">
								<param value="111.0.0.0" name="swfversion">
								<param value="../../Scripts/expressInstall.swf" name="expressinstall">
								<!-- 浏览器将以下替代内容显示给使用 Flash Player 6.0 和更低版本的用户。 -->
								<div>
									<h4>此页面上的内容需要较新版本的 Adobe Flash Player。</h4>
									<p><a href="http://www.adobe.com/go/getflashplayer"><img width="112" height="33" src="style/images/get_flash_player.gif"
											 alt="获取 Adobe Flash Player"></a></p>
								</div>
								<!--[if !IE]>-->
							</object>
							<!--<![endif]-->
						</object>
					</div><!-- #logoUploader -->
				</div>
				<!------------------------------------- end ----------------------------------------->

				<script src="style/js/company.min.js" type="text/javascript"></script>
				<script>
					var avatar = {};
					avatar.uploadComplate = function( data ){
						var result = eval('('+ data +')');
						if(result.success){
							jQuery('#logoShow img').attr("src",ctx+ '/'+result.content);
							jQuery.colorbox.close();
						}
					};
					var company_id = "";
					$(document).ready(function() {
						company_id = getCookie('company_id');
						if(company_id == ''){
							window.location.href = "login.html";
						}
						var uname = getCookie('uname');
						$('#uname').text(uname);
						$.ajax({ //传数据的方式
							url: ip_address+"/companys/info?id=" + company_id,
							type: "post",
							success: function(result, request) { //传数据成功之后的操作   result是servlet传过来的数据  这个函数对result进行处理，让它显示在 输入框中
								console.log('返回了' + JSON.stringify(result))
								var status = result.status;
								if(status == 0){
									var data = result.data;
									var cname = data.cname;
									var address = data.address;
									var scale = data.scale;
									var username = data.userName;
									var createTime = data.createTime;
									var ctime = data.ctime;
									var phone = data.phone;
									var chttp = data.chttp;
									var introduce = data.introduce;
									var email = data.email;
									$('#company_title').text(cname);
									$('#company_name').text(address+cname);
									$('#ctime').text("公司创立时间："+ctime);
									$('#introduce').text(introduce);
									$('#phone').text("联系电话:"+phone);
									$('#email').text("邮箱:"+email);
									$('#chttp').text(chttp);
									$("#chttp").attr("href",chttp);
									$('#scale').text(scale+" 人");
									$('#username').text(username);
									$('#u_phone').text(phone);
									$('#cname_2').text(cname);
									$('#companyShortName').val(cname);
									$('#companyFeatures').val(ctime);
									$('#address').text(address);
									var professions = "";
									var profession = data.profession;
									for(var i in profession){
										if(i == profession.length-1){
											professions = professions+profession[i].name
										}else{
											professions = professions+profession[i].name+"、"
										}
									}
									$('#profession').text(professions)
									$('#city').val(address)
									$('#select_ind').val(professions)
									$('#companySize').val(scale);
									$('#companyUrl').val(chttp);
									$("#companyUrl").attr("href",chttp);
								}else{
									var msg = result.msg;
									alert(msg);
								}
							},
							error: function(Error) {
								console.log(Error);
							},
							complete: function(xhr, data) {
								console.log("complete");
							}
						});
					});
					
					//存cookie
					function setCookie(name, value) {
						var Days = 30;
						var exp = new Date();
						exp.setTime(exp.getTime() + Days * 24 * 60 * 60 * 1000);
						document.cookie = name + "=" + escape(value) + ";expires=" + exp.toGMTString();
					}
					$("#logout").click(function(){
						console.log("退出")
						setCookie('company_id','')
						setCookie('cname','')
						setCookie('cemail','')
						window.location.href = "login.html";
					});
					$("#saveDetail").click(function(){
					    	console.log('修改公司名和创立时间')
							var cname = $('#companyShortName').val();
							var ctime = $('#companyFeatures').val();
							update_companys(cname,ctime,"","","","")
					});
					$("#submitProfile").click(function(){
					    	console.log('修改公司介绍')
							var introduce = $('#companyProfile').val();
							update_companys("","",introduce,"","","")
					});
					$("#submitFeatures").click(function(){
					    	console.log('修改公司详细介绍')
							var address = $('#city').val();
							var scale = $('#companySize').val();
							var chttp = $('#companyUrl').val();
							update_companys("","","",address,scale,chttp)
					});
					function getCookie(name) {
						var arr, reg = new RegExp("(^| )" + name + "=([^;]*)(;|$)");
						if (arr = document.cookie.match(reg))
							return unescape(arr[2]);
						else
							return null;
					}
					function update_companys(cname,ctime,introduce,address,scale,chttp){
						var datas = {};
						datas['id'] = company_id;
						if(cname != ""){
							datas['cname'] = cname;
						}
						if(ctime != ""){
							datas['ctime'] = ctime;
						}
						if(introduce != ""){
							datas['introduce'] = introduce;
						}
						if(address != ""){
							datas['address'] = address;
						}
						if(scale != ""){
							datas['scale'] = scale;
						}
						if(chttp != ""){
							datas['chttp'] = chttp;
						}
						datas['profession'] = null;
						$.ajax({ //传数据的方式
							url: ip_address+"/companys/update",
							type: "post",
							data: JSON.stringify(datas),
							contentType: "application/json;charset=utf-8", //必须要设置
							dataType: "json", //返回的数据格式为json
							success: function(result, request) { //传数据成功之后的操作   result是servlet传过来的数据  这个函数对result进行处理，让它显示在 输入框中
								console.log('返回了' + JSON.stringify(result))
								var status = result.status;
								if(status == 0){
									location.reload();
								}else{
									var msg = result.msg;
									alert(msg);
								}
							},
							error: function(Error) {
								console.log(Error);
							},
							complete: function(xhr, data) {
								console.log("complete");
							}
						});
					}
				</script>
				<div class="clear"></div>
				<input type="hidden" value="d1035b6caa514d869727cff29a1c2e0c" id="resubmitToken">
				<a rel="nofollow" title="回到顶部" id="backtop" style="display: inline;"></a>
			</div><!-- end #container -->
		</div><!-- end #body -->
		<div id="footer">
			<div class="wrapper">
				<a rel="nofollow" target="_blank" href="about.html">联系我们</a>
				<a target="_blank" href="http://www.lagou.com/af/zhaopin.html">互联网公司导航</a>
				<a rel="nofollow" target="_blank" href="http://e.weibo.com/lagou720">我们的微博</a>
				<a rel="nofollow" href="javascript:void(0)" class="footer_qr">我们的微信<i></i></a>
				<div class="copyright">&copy;2019-2020 qiuxinxin <a href="http://www.baidu.com"
					 target="_blank">东莞理工学院城市学院备14023790号-2</a></div>
			</div>
		</div>

		<script src="style/js/core.min.js" type="text/javascript"></script>
		<script src="style/js/popup.min.js" type="text/javascript"></script>

		<!--  -->


		<div id="cboxOverlay" style="display: none;"></div>
		<div id="colorbox" class="" role="dialog" tabindex="-1" style="display: none;">
			<div id="cboxWrapper">
				<div>
					<div id="cboxTopLeft" style="float: left;"></div>
					<div id="cboxTopCenter" style="float: left;"></div>
					<div id="cboxTopRight" style="float: left;"></div>
				</div>
				<div style="clear: left;">
					<div id="cboxMiddleLeft" style="float: left;"></div>
					<div id="cboxContent" style="float: left;">
						<div id="cboxTitle" style="float: left;"></div>
						<div id="cboxCurrent" style="float: left;"></div><button type="button" id="cboxPrevious"></button><button type="button"
						 id="cboxNext"></button><button id="cboxSlideshow"></button>
						<div id="cboxLoadingOverlay" style="float: left;"></div>
						<div id="cboxLoadingGraphic" style="float: left;"></div>
					</div>
					<div id="cboxMiddleRight" style="float: left;"></div>
				</div>
				<div style="clear: left;">
					<div id="cboxBottomLeft" style="float: left;"></div>
					<div id="cboxBottomCenter" style="float: left;"></div>
					<div id="cboxBottomRight" style="float: left;"></div>
				</div>
			</div>
			<div style="position: absolute; width: 9999px; visibility: hidden; display: none;"></div>
		</div>
	</body>
</html>
